package com.mh.common.core.exception;

//同一处理异常类-->继承运行时异常类
public class BaseException extends RuntimeException {

    //异常码
    private String code;
    //异常信息
    private String msg;

    //无参,有参,set(),get()
    public BaseException() {
    }
    public BaseException(String code, String msg) {
        super(msg); //msg赋值给父类
        this.code = code;
        this.msg = msg;
    }
    public BaseException(String s) {
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
